package com.spring.demo1.eg3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author vhans
 */
@Component
public class Service1 {
    private Service2 service2;

    public void m1() {
        System.out.println("service1 m1()");
    }

    @Autowired
    public void setService2(Service2 service2) {
        this.service2 = service2;
    }


}